﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace zhangmenren.Db
{
    public interface IProductRepository
    {
        Task<bool> AddAsync<T>(T t);
        Task<IEnumerable<T>> GetAllAsync<T>();
        Task<Product> GetByIDAsync(int id);
        Task<bool> DeleteAsync(int id);
        Task<bool> UpdateAsync(Product prod);
    }
}
